package com.alibaba.user.mapper;

import com.alibaba.basic.mapper.BaseMapper;
import com.alibaba.user.domain.Logininfo;
import com.alibaba.user.dto.LoginDto;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author Tom
 * @since 2022-06-05
 */
public interface LogininfoMapper extends BaseMapper<Logininfo> {

    /**
     * 账号登录
     * @param loginDto
     * @return
     */
    Logininfo loadByAccount(LoginDto loginDto);

    /**
     * 微信登录根据用户名查询登录信息对象
     * @param userId
     * @return
     */
    Logininfo loadLogininfoByUserId(Long userId);


}
